package com.fanghuaiming.seata.feign.spi.item;

import com.fanghuaiming.seata.common.model.item.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/****
 * @description: 商品服务的SPI
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午5:08
 *
 */
@FeignClient(name = "xa-seata-tcc-cloud-item")
public interface SeataItemFeignClient {

    /**
     * @Description: 扣减商品
     *
     * @param:
     * @return:
     * @auther: fanghuaiming
     * @date: 2020/11/27 下午5:15
     * @version:1.0.0
     */
    @RequestMapping(value = "/item/reduceItem",method = RequestMethod.POST)
    String reduceItem(@RequestBody Sku sku) ;
}
